#include "socket_class.hpp"
#include <iostream>
#include <sys/socket.h>
#include <sys/types.h> 
#include <netinet/in.h>
#include <unistd.h>

namespace rocket 
{

socket_class::socket_class()
:_socket_d(socket(AF_INET,SOCK_STREAM,IPPROTO_TCP))
{

}
socket_class::socket_class(int fd)
:_socket_d(fd)
{

}
socket_class::~socket_class()
{
    ::close(_socket_d);

}

void socket_class::shutdown_write()
{
//    ::close(_socket_d);
}

int socket_class::get_socket()
{
    return _socket_d;
}

}

